import request from '@/utils/request'

// 行李转盘管理
export function getCarousels (params) {
  return request({
    url: '/luggage/carousels',
    method: 'get',
    params
  })
}

export function updateCarousel (data) {
  return request({
    url: `/luggage/carousels/${data.id}`,
    method: 'put',
    data
  })
}

export function addCarousel (data) {
  return request({
    url: '/luggage/carousels',
    method: 'post',
    data
  })
}

// 行李查询接口
export function searchLuggage (ticketNumber) {
  return request({
    url: `/luggage/search/${ticketNumber}`,
    method: 'get'
  })
}
